package com.tg.service;


import com.tg.pojo.entity.TgOrder;
import com.tg.pojo.entity.TgOrderDetail;
import com.tg.pojo.requestVo.OrderReq;
import com.tg.pojo.resposeVo.BaseResp;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author 王兴
 * @Description
 * @Date 2022/3/28
 */

public interface OrderService {

    BaseResp addOrder(OrderReq orderReq, HttpServletRequest request);

    BaseResp findOrderByUserId(HttpServletRequest request);

    BaseResp cancelOrder(Map map);

    BaseResp updateStatus(String orderId, Integer status);

    BaseResp findByStatusAndUserid(Map map);


    BaseResp findByOrderid(String orderid);

    BaseResp findDetailByOrderid(String orderid);

    BaseResp saveAndFlush(TgOrder tgOrder);

    BaseResp findByDetailByOrderDetail(String detailId);

    BaseResp delById(String oldOrderId);

    BaseResp updateOrderId(TgOrderDetail tgOrderDetail);
}
